# 创建类
class Restaurant:
    """模拟餐馆"""
    def __init__(self,restaurant_name,cuisine_type):
        """初始化描述餐馆属性"""
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        """显示餐馆信息摘要概述"""
        msg = f"{self.restaurant_name.title()} serves wonderful {self.cuisine_type.title()}."
        print(f"\n{msg}")

    def open_restaurant(self):
        """显示一条消息，指出餐馆正在营业"""
        msg = f"{self.restaurant_name.title()} is open. Come on in!"
        print(f"\n{msg}")

    def set_number_served(self,served):
        """设置就餐人数"""
        self.number_served += served

    def increment_number_served(self,number):
        """让就餐人数递增"""
        if number >= 0:
            self.number_served += number
        else:
            print("增加的数字不能为负数")

# 创建冰淇凌小店类，继承Restaurant
class IceCreamStand(Restaurant):
    """模拟冰淇凌小店"""
    def __init__(self,restaurant_name,cuisine_type):
        """初始化父类属性，在初始化冰淇凌小店特有属性"""
        super().__init__(restaurant_name,cuisine_type)
        self.flavors = []

    def IceCream_flavors(self):
        print("冰淇凌的口味有：")
        for flavor in self.flavors:
            print(f"\t-{flavor}")

# 创建类
ice_cream = IceCreamStand("蜜雪冰城","Ice_Cream")
ice_cream.flavors = ["原味","香草","牛乳"]

ice_cream.IceCream_flavors()